package com.softplus.carrefour.hd.bltier.entity;

import java.io.Serializable;

import java.math.BigDecimal;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class CfhdCaseHeadLogPK implements Serializable {

    /** identifier field */
    private String caseId;

    /** identifier field */
    private String userId;

    /** identifier field */
    private BigDecimal seqLog;

    /** full constructor */
    public CfhdCaseHeadLogPK(String caseId, String userId, BigDecimal seqLog) {
        this.caseId = caseId;
        this.userId = userId;
        this.seqLog = seqLog;
    }

    /** default constructor */
    public CfhdCaseHeadLogPK() {
    }

    public String getCaseId() {
        return this.caseId;
    }

    public void setCaseId(String caseId) {
        this.caseId = caseId;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public BigDecimal getSeqLog() {
        return this.seqLog;
    }

    public void setSeqLog(BigDecimal seqLog) {
        this.seqLog = seqLog;
    }

    public String toString() {
        return new ToStringBuilder(this).append("caseId", 
                                                getCaseId()).append("userId", 
                                                                    getUserId()).append("seqLog", 
                                                                                        getSeqLog()).toString();
    }

    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if (!(other instanceof CfhdCaseHeadLogPK))
            return false;
        CfhdCaseHeadLogPK castOther = (CfhdCaseHeadLogPK)other;
        return new EqualsBuilder().append(this.getCaseId(), 
                                          castOther.getCaseId()).append(this.getUserId(), 
                                                                        castOther.getUserId()).append(this.getSeqLog(), 
                                                                                                      castOther.getSeqLog()).isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder().append(getCaseId()).append(getUserId()).append(getSeqLog()).toHashCode();
    }

}
